package com.sto.stoapp.activity.scanner.inquiry;

import android.content.Context;

import com.sto.stoapp.db.manager.CastManager;
import com.sto.stoapp.entity.DownCastEntity;
import com.sto.stoapp.log.ExceptionLog;

import java.util.ArrayList;
import java.util.List;
public class InquiryCastRecord {

    private Context context;
    private List<DownCastEntity> entityLists = new ArrayList<DownCastEntity>();

    public InquiryCastRecord(Context context1) {
        context = context1;
    }

    /**
     * 查询实到数量
     */
    public List<DownCastEntity> queryRecord(String date, String flight) {
        try {
            entityLists = CastManager.getInstance(context).queryRecordByDate(
                    date, flight);
        } catch (Exception e) {
            e.printStackTrace();
            ExceptionLog.writeLog("cast_record", e.getMessage());
        }
        return entityLists;
    }
}
